#include "label.h"
#include"QEvent"
#include"QDebug"
label::label(QWidget *parent):QLabel(parent)
{

}

void label::enterEvent(QEvent *event)
{
    (void)event;
    qDebug()<<"进入";

}

void label::leaveEvent(QEvent *event)
{
    (void)event;
    qDebug()<<"出去";

}
